#include<stdio.h>
#include<math.h>
int main()
{
	int n,i;
	double s=1,sum;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		sum+=sqrt(s);
		s++;
	}
	printf("sum = %.2f",sum);
	return 0;
}
